package io.mft.commons.exception;

public class MFTException extends RuntimeException{

	 private int errorNo=-1;
	 //private String message;
	        /**
	 * @字段名称 serialVersionUID
	 * @说明：TODO
	        */  
	    
	private static final long serialVersionUID = 1L;

	public MFTException(String message,Throwable throwable) {
		super(message, throwable);
	}
	public MFTException(Throwable throwable) {
		super(throwable);
	}
	public MFTException(String message) {
		super(message);
	}
	public MFTException(String message,Object...args) {
		super(String.format(message, args));
	}
	public MFTException(int errorNo ,String message,Object...args) {
		super(String.format(message, args));
		this.errorNo=errorNo;
	}
	public MFTException(int errorNo ,String message) {
		super(message);
		this.errorNo=errorNo;
	}
	public MFTException(String message,Throwable throwable,Object...args) {
		super(String.format(message, args), throwable);
	}
	
	public int getErrorNo() {
		return errorNo;
	}
}
